package cn.iocoder.yudao.module.aiposter.controller.admin.template.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 海报模版 Response VO")
@Data
@ExcelIgnoreUnannotated
public class TemplateRespVO {

    @Schema(description = "模版编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("模版编号")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "新年手机海报")
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "行业", requiredMode = Schema.RequiredMode.REQUIRED, example = "食品")
    @ExcelProperty("行业")
    private String bizName;

    @Schema(description = "关键词", requiredMode = Schema.RequiredMode.REQUIRED, example = "草莓、巧克力")
    @ExcelProperty("关键词")
    private String keyword;

    @Schema(description = "封面图", requiredMode = Schema.RequiredMode.REQUIRED, example = "/static/10101.png")
    @ExcelProperty("封面图")
    private String cover;

    @Schema(description = "图层信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "{'type','标题'}")
    @ExcelProperty("图层信息")
    private String data;

    @Schema(description = "宽度", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
    @ExcelProperty("宽度")
    private Integer width;

    @Schema(description = "高度", requiredMode = Schema.RequiredMode.REQUIRED, example = "300")
    @ExcelProperty("高度")
    private Integer height;

    @Schema(description = "状态（启动、停止）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态（启动、停止）", converter = DictConvert.class)
    @DictFormat("system_operate_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}